package cn.itcast.hotel.pojo;

import lombok.Data;
import org.springframework.web.servlet.HandlerInterceptor;

import java.io.FileInputStream;
import java.math.BigDecimal;


public  class Person {



//    int a = 11111111111111111111111; // 异常 错误

    public  void eat() throws Exception{

        String s = new String();  //

    }



    public static void main(String[] args) {

//        FileInputStream fileInputStream = new FileInputStream("");
//
//        Thread.sleep(11111);
//        Integer a = 20;
//        Integer b = 20;
//        System.out.println(a==b);

//        System.out.println(0.1+0.2);  0.30000000000000004

        BigDecimal a = new BigDecimal("0.1");
        BigDecimal b = new BigDecimal("0.2");
        BigDecimal c = a.add(b);
        a.subtract(b);
        a.multiply(b);
        a.divide(b);
        System.out.println(c);


    }

}
